from flask import Flask, Blueprint, render_template, send_from_directory, request
from apps.common.utils import get_active_theme_name

# 创建main
tag_bp = Blueprint('tag',
                    __name__,
                    url_prefix='/tag')

@tag_bp.route('/')
def index():
    """标签列表页面"""
    return render_template(get_active_theme_name() + '/tag.html')

@tag_bp.route('/<string:slug>')
def tag_posts(slug):
    """标签文章列表页面"""
    return render_template(get_active_theme_name() + '/tag_posts.html')